/**
 * Created by kedong on 2017/7/25 0025.
 */
$(function () {
    $(document).keyup(mapKeyup);

    function mapKeyup(e) {
        console.log('keyup:', e.key + "-" + e.keyCode);
        switch (e.key) {
            case "Escape":
                $.publish("escape:up");
                break;
        }
    }
});
